約 5,508,117 件
https://w.atwiki.jp/0927525018/pages/47.html
http //www37.atwiki.jp/joyfull/pages/15.html
https://w.atwiki.jp/marineblue/pages/80.html
まとめ あらすじです 1.主人公が家を出て、博士の家に行く 2.博士から御三家のポケモンを一匹だけもらう。 3.研究所から出ようとするところで、ライバルとバトルする 4.一つ目の町に向かう 5.ふたつめの町に向かう。 6.一回目のジム戦 7.三つ目の町に向かう 8.ライバル戦 9.ライバルから勝利後、卵を貰う 10.二回目のジム戦 11.4つ目の町へ向かう 12.三回目のジム戦 13.バースト団登場 14.5つ目の町へ向かう 15.バースト団アジトへ向かう 16.第一のアジト壊滅 17.四回目のジム戦 18.6つ目の町へ向かう 19.五回目のジム戦 20.再びバースト団と遭遇 21.伝説のポケモンについて知る 22.バースト団ボスとのバトル 23.7つ目の町へ向かう 24.六回目のジム戦 25.7つ目の町へ向かう 26.三度ライバル戦 27.8つ目の町へ向かう 28.バースト団と三度衝突 29.伝説のポケモンが覚醒する 30.バースト団ボスとのバトル 31.9つ目の町へ向かう 32.八回目のジム戦 33.バースト団と四度戦闘 34.バースト団ボスとのラストバトル 35.チャンピオンロードへ向かう 36.四回目のライバル戦 37.ポケモンリーグ挑戦 38.殿堂入り 39.エンディング後の世界へ 40.真のエンディング 原文(葵氏作) Pokemon dlaft Marin Blue Story(PMBS) なんかカッコイイ・・・。 1.主人公が家を出て、博士の家に行く Out of the house is a hero., Go to the house of Dr. 2.博士から御三家のポケモンを一匹だけもらう。 Only one animal of the Big Three get a Pokemon from Dr. 3.研究所から出ようとするところで、ライバルとバトルする Where to get away from research institutes., To battle with rival. 4.一つ目の町に向かう The first one goes to town. 5.ふたつめの町に向かう。 The second towards the town. 6.一回目のジム戦 Th a gym battle. 7.三つ目の町に向かう Towards the town of the third. 8.ライバル戦 Rival battle. 9.ライバルから勝利後、卵を貰う After the victory from rival, get the eggs. 10.二回目のジム戦 The second gym battle. 11.4つ目の町へ向かう Towards the town of the fourth. 12.三回目のジム戦 Three times against the first gym. 13.バースト団登場 Dan appeared burst. 14.5つ目の町へ向かう Towards the town of the fifth. 15.バースト団アジトへ向かう Dan burst towards the hideout. 16.第一のアジト壊滅 Destroyed a hideout of the first. 17.四回目のジム戦 Four times against the first gym. 18.6つ目の町へ向かう Towards the town of the sixth. 19.五回目のジム戦 The fifth gym battle. 20.再びバースト団と遭遇 Encounter with Dan again burst. 21.伝説のポケモンについて知る To know about the legendary Pokemon. 22.バースト団ボスとのバトル Battle with the boss Dan burst. 23.7つ目の町へ向かう Townward seventh. 24.六回目のジム戦 Battle of the sixth gym. 25.7つ目の町へ向かう Townward seventh. 26.三度ライバル戦 Three times against rival. 27.8つ目の町へ向かう Towards the town of the eighth. 28.バースト団と三度衝突 Dan burst collision and three times. 29.伝説のポケモンが覚醒する Legendary Pokemon to awakening. 30.バースト団ボスとのバトル Battle with the boss Dan burst 31.9つ目の町へ向かう Townward ninth. 32.八回目のジム戦 Eight times the first gym battle. 33.バースト団と四度戦闘 Dan and four degree combat burst. 34.バースト団ボスとのラストバトル Last boss battle with Dan burst. 35.チャンピオンロードへ向かう Champion Road toward. 36.四回目のライバル戦 The first battle rival four times. 37.ポケモンリーグ挑戦 Pokemon League challenge. 38.殿堂入り Hall of Fame. 39.エンディング後の世界へ To the world after the ending. 40.真のエンディング True Ending こんな感じです
https://w.atwiki.jp/ohden/pages/504.html
PHP CentOS release 6.4 Apache/2.2.3 PHP 5.3.3 install ~ tips ~ 実行速度計測 正規表現のコスト PHP/tips/ ~ tools ~ pear PHPで書かれたPHP用lib。 pecl Cで書かれたPHP用lib。APIが変更されると原則再コンパイルが必要。 phpize PHPをソースから再コンパイルすることなく拡張モジュールをビルドすることができる ~ IDE ~ NetBeans https //ja.netbeans.org/ PHP/tools/ ~ framework ~ FuelPHP 1.6 埋め込みタグ phpをhtmlに埋め込む場合は以下のタグを用いる。 ?php echo $hoge; ? script language="php" echo $hoge; /script 短縮タグ # vi /etc/php.ini short_open_tag = On 上記設定の後、apache再起動。 # service httpd restart した後、以下のPHP埋め込みタグが使用可能となる。 ?= $hoge ? ? echo $hoge; ? DateTimeが使えない ロケーションの設定が必要。 # vi /etc/php.ini [Date] date.timezone = "Asia/Tokyo" # service httpd restart apache再起動で使えるようになる。 mbstringを使えるようにする # yum install php-mbstring # vi /etc/php.ini e.g.) 環境によって変わるんで予めpathを調べておくこと。 [PHP] extension=/usr/lib64/php/modules/mbstring.so # service httpd restart apache再起動で使えるようになる。 変数に格納された文字列名の変数を宣言する。 ?php $hoge = hage ; ${$hoge} = hege. ; var_dump($hage); ? string(5) "hege." apacheでbasic認証してるサーバでfile_get_contents()したい ?php $data = file_get_contents( http //【user】 【passwd】@localhost/hoge.php );? web apiのcall方法 file_get_contents()を使う。 http //www.softel.co.jp/blogs/tech/archives/2323 更新日: 2013年09月10日 (火) 21時31分13秒 PHPでMySql使う場合の話。php-mysql、php-mysqlndがあるけど、nd付いてる方がNativeDriver使えるらしい。 -- (s1n) 2013-06-21 18 30 33 名前 コメント すべてのコメントを見る
https://w.atwiki.jp/father/pages/5.html
最新バージョン 2006/08/08現在 DB API PEAR PECL PHP 5.1.4 Released PHP 4.4.3 Released PHP Hypertext Preprocessor 3大美徳(http //www.lanl.gov/Document/) 無精 短気 傲慢 自分用のライブラリとか関数とか作っちゃったりしてます? でも大抵それって車輪の再発明だったりします。 例えば独自に作った関数などは世界中の誰かがもう クラスライブラリとして提供しているはずです。 運用形態は一般的に3つ DSO(Dynamic Shared Objects)普通こっちだけど遅い? CGI CLI モジュール mbstring GD ライブラリ バンドルエクステンション PEAR クラスライブラリ PECL パッケージ ADOdb クラスライブラリ JpGraph Smarty FPDF PHPLIB クラスライブラリ Pat PHP Application Tools クラスライブラリ ZendCodeギャラリ FLASH Ming関数 AMFPHP PDO http //www.thinkit.co.jp/free/marugoto/1/4/1/1.html debian の install # apt-get install libapache2-mod-php4 # apt-get install php4 これだけでいける .
https://w.atwiki.jp/qhxptgzn/pages/20.html
hair." "The tripod, and the Bodystockings UK six elders of the space space ring ring, Su strong, and..."... Cheng Gong this time from the cloud Danzong harvest things for the vast majority of people jealous, even the imperial Yanjing slightly Heartbeat, more distressed, he loves is none of these things, these things are to the family s hands, Cheng Jiahui therefore again have the promotion strength. Waste, emperor to Su burning, gas is not a place to. The sound situation Bodystockings UK he can like this mess now, do not know to support his blue eyebrow think what, all were killed, did not come this time. Is not to count on them with the waste, some things or to yourself. Cheng Gong arrogant rushed in, when Su lie most scenery meet the emperor s will from heaven he hit the ground, completely destroyed his prestige. At the moment, and with the people to go all out, the emperor feel very embarrassed, not to bow to rob Cheng Road, but after Cheng bow out again to go out is a bit Bodystockings UK behind in the process with the bow, this let him also is very difficult, but this time Jiang Weixiang is sensible over polite will he go to the post edge, also please all the guests take a break. Then a message came, when the blue eyebrow, poison the two elders to guard the snow was secretly steal, they chased away. The news is a natural ginger Lanchuan come, then Jiang LAN Ethernet on behalf of Jiang Weixiang became a suzerain support elders, after simple repair the original ceremony hall became the new suzerain host celebrations. But all of a sudden a lot less people, the emperor down is a symbol of family name for several hour after leaving, Bodystockings UK like wind sword Zong Changlao cloud month day, original evil religion saint they have left early. Distance from the cloud Danzong hundreds of miles down the mountain, the only way which must be passed on their process of arch, cloud month Tianzheng with people with ultra fast forward speed, the body such as freely flowing style of writing in general than the general secondary BMW speed much faster. "Boom!" The sky suddenly a sword light, a massive sword in front of them, then the air two people falling Bodystockings UK slowly. "Well, you know that you will intervene in this matter." Cloud month cold to hum a, cold look at the original Saint evil religion with him behind a closed eyes old. "Of course you have to intervene in the situation, sword Pope to do my original evil religion will intervene, you want to kill the people we save, you want to protect the people we killed. Open cloud sword Pope Yunyue day elders don t know what you know, we have to two cases among the undead endlessly point?" The original Bodystockings UK Saint evil religion cold voice, although strength than the cloud month day worse on some momentum, but it did not allow the PopeThe main force of the old servant, isn t you can match. From what he has just brought the saint sword flight can be seen, he should have been close to the peak period of the existence of free from vulgarity. Cloud month day just break refined period of seventh layer become elders in the old servant soon, before he can protect life is good. This is the real door-to-door badly, as Yun Danzong looks is not small, but only in the blue cloud Empire called. Their elders are also exist extraordinary period of eighth layer, Ninth layer, but little behind the same exceptional period has. The real schools, there are a lot of Bodystockings UK each level, and that no fault. The small branches, small family may have a strong presence is not weak, but is not behind each level people, such a person down a family of a martial art is finished. "Worse, the elders will know that your relationship is unusual, no wonder Cheng bow a secular dandyism dare kill me wind sword big elder disciple, the original is your original evil religion in the behind, he also will I Fengyun sword Pope disciple refined into a puppet, this thing I have notice the elders, Bodystockings UK - https //www.amoretu.com/sexy-hosiery-bodystockings Cheng Jia soon from this country from this delta disappear, completely disappeared, we go." Cloud month day finished, with a turn away. "Blind uncle!" The original evil religion saint turn to look at the old man, close will find the old man s eyes did not intend to close, but by a special forces seal generally, his eyes can not see anything. No way. Blind uncle slightly shook his head "although he just wind sword Zong ordinary elders, but wind sword Zong internal can reach the elders are not the same in general, but their suzerain like put on airs, such as sending men to small sects will reward some magic, like worldly emperor s imperial sword, but he this weapon more powerful, mostly suzerain make sword, some if critical juncture can lie between empty borrow sovereign power, even the land gods are difficult to easily kill does not cause any trouble, so the wind sword Pope these assignments are superior elders, even if the strength is not good also nobody dare easily provoke. Man, look at so long, also do not want to come out." Sorry. The original evil religion saint heart in a surprised, because her spiritual force also watch around, but did not find what is the problem. If cloud month day so he wouldn t find it is just, but now listen to blind uncle mean, he has to guess who is, how may, if he the strength to achieve extraordinary period than their difference is also many, how will find him, myself but has reached extraordinary period of sixth layer. "The powerful, the last time I went to the original evil religion did not see Nin Lao, but also heard, see Nin Lao that should has almost reached the land of immortals?
https://w.atwiki.jp/niwatorikurokoge/pages/23.html
PHP Hypertext Preprocessor http //www.php.net/ http //jp2.php.net/ (日本のミラーサイト) 日本PHPユーザー会 (Japan PHP User Group) http //www.php.gr.jp/
https://w.atwiki.jp/jane_js/pages/83.html
JaneViewインストールと設定 このページは JaneView を用いて 5ch.net を (むりやり) 読み書きするための手順です。 【重要】この文書は JaneView の正式な文書ではありません。この情報を利用したいかなる結果も自己責任です。 ゴール この手順では下記を目指しています。(2024年4月現在) JaneDoe View で 5ch.net に透過的に読み書きできる (まちBBS、BBSPINK は未確認) どんぐりシステムに対応する 過去ログへアクセスできる imgur.com の画像を表示できる 注意制限 【重要】JaneView はもともと 5ch.net をサポートしません。この情報を利用したいかなる結果も自己責任です。 5ch.netドメインを認識しない ・問題: JaneView に 5ch.net のURLを入力しても表示されない。 ・原因: JaneView は 2ch.net しか認識しないためです。 ・回避策 手作業でドメイン名を修正して対応します (例 mevius.5ch.net → mevius.2ch.net) ・補足: 5ch.net との読み書きは 2chAPIProxy を経由することで (透過的に) ドメイン変更が行われます。 JaneView終了時エラー ・問題 JaneView を終了するとき、次のエラーが起こる。 モジュール 'Jane2ch.exe' のアドレス 00404070 でアドレス FFFFFFDC に対する読み込み違反が起きました。[00404070]。 ・原因 不明 ・回避策 不明 5ch対応への課題と解決策 もともと JaneView は 2ch に対応したブラウザとしてリリースされました。その後、2ch は消滅しました。新たに作られた 5ch は別のものです。代表的な違いとして次があります (2024年4月時点)。 ドメイン 2ch.net ⇔ 5ch.net プロトコル HTTP ⇔ HTTPS ユーザ認証 なし ⇔ どんぐりシステム 過去ログ 公開 ⇔ 非公開 課題: 上述のように 2ch と 5ch はまったく別ものであり、メンテナンスも止まっている JaneView が単独で 5ch に対応することは困難です。 解決策: 5ch 未対応のブラウザ (JaneView を含む) で 5ch を利用できるよう、ブラウザと 5ch の通信を中継し、差異を吸収するプロキシーと呼ばれる特別なアプリケーションが有志によって作成されています。そのうちの一つ 2chAPIProxy を使用して、JaneView で 5ch を読み書きできるようにします。 インストール Windows PC に、2chAPIProxy と JaneView の2つのアプリケーションをインストールし、連携させることで JaneView から 5ch を利用する環境を構築します。 2chAPIProxy JaneView と 5ch との間のデータ通信を中継するアプリケーションです。JaneView を使うときは 2chAPIProxy が実行している必要があります。 JaneView 5ch を読み書きするためのアプリケーションです。2chAPIProxy を介して 5ch を読み書きし、その記録を PC に保存します。 2chAPIProxy インストール インストール先フォルダを作成する たとえば、Cドライブ直下に「2chAPIProxy」というフォルダを作成する。 2chAPIProxy書庫ファイルをダウンロードする 通常、最新のバージョンを使用します。 配布元 https //github.com/onihusube/2chAPIProxy/releases ここで使用した書庫ファイル https //github.com/onihusube/2chAPIProxy/releases/download/v20240426/2chAPIProxy.20240426.zip ダウンロード先のフォルダーに 2chAPIProxy.YYYYMMDD.zip というファイルが作成されればOK (ここでYYYYMMDDは作成年月日) 書庫ファイルを伸長する ZIPファイルを伸長して、含まれているファイルやフォルダーを上記のインストール先フォルダに格納する。 次のようにインストールされればOK C ドライブ └ 2chAPIProxy フォルダ ├ document フォルダ ├ 起動しない場合 フォルダ ├ 2chAPIProxy.exe → 2chAPIProxyアプリケーション └ その他 2chAPIProxyを開始する ・プロキシーソフトウェア「2chAPIProxy.exe」をダブルクリックして開始する。 ・もし「WindowsによってPCが保護されました」と表示されたら「詳細情報」をクリックし、表示された「実行」ボタンをクリックする。 2chAPIProxyの画面が表示されればOK 2chAPIProxyを設定する 続けて2chAPIProxyの初期設定を行う。 作業は、それぞれのタブをクリックして切り替え、設定を変更する。 各タブの設定後、保存ボタンがあるタブでは保存ボタンを押して、その設定をファイルに記憶させる。 【基本】タブ ・ポート番号 8080 (デフォルトのまま。この数字は後述のJaneViewのポート番号と一致させる) ・起動と同時に開始 ON (チェックを入れる) (これ以外はデフォルトのまま) 【動作設定】タブ 作業なし (デフォルトのまま) 【拡張設定】タブ ・2chへのアクセスにhttps(TLS)を利用する ON (チェックを入れる) (これ以外はデフォルトのまま) 【HTML変換設定】タブ ・過去ログをHTMLから変換する ON(チェックを入れる) (これ以外はデフォルトのまま) 【書き込み設定】タブ ・UTF-8で書き込む ON(チェックを入れる) ・nonce値にミリ秒を付加する OFF(チェックを外す) (これ以外はデフォルトのまま) 全てのタブの設定が終わった後、【基本】タブに戻り、「開始」ボタンをクリックして2chAPIProxyを開始する。 JaneViewインストール インストール先フォルダを作成する たとえば、Cドライブ直下に「JaneView」というフォルダを作成する。 JaneView書庫ファイルをダウンロードする もともとJaneViewは公式サイトから配布されていたが、消滅してしまった。ここではインターネットアーカイブからダウンロードする。 JaneView (公式サイトのアーカイブ) https //web.archive.org/web/20190331112328/http //www.geocities.jp/jview2000/ 「ベータ版」の下にある「JaneDoeView (181014β)」をダウンロードする。 https //web.archive.org/web/20190331112328/http //www.geocities.jp/jview2000/DoeView181014beta.zip ダウンロード先のフォルダーに DoeView181014beta.zip というファイルが作成されればOK 書庫ファイルを伸長する ZIPファイルを伸長して、含まれているファイルやフォルダーを上記のインストール先フォルダに格納する。 次のようにインストールされればOK C ドライブ └ JaneView フォルダ ├ Option フォルダ ├ Jane2ch.exe - JaneView アプリケーション ├ JaneView.txt - 説明書 └ その他 JaneView を開始する Jane2ch.exe ファイルをダブルクリックする ボード一覧がないので取りに行って良いですか? と聞かれた場合、「はい(Y)」ボタンをクリックする。 「JaneDoe View α」と表示されたアプリケーションのウィンドウが開ければOK JaneView を設定する メニューの 設定(O) から 設定(O) を選択する。 「設定 -【通信】」ダイアログが表示される。 基本 └ 通信 をクリックし、次を変更する (その他はデフォルトのまま) [X] Proxyを使う → ONにする [X] Proxy使用時にキャッシュを使用しない → ONにする 受信用 127.0.0.1 8080 → それぞれ入力 送信用 127.0.0.1 8080 → それぞれ入力 SSL 用 127.0.0.1 8080 → それぞれ入力 ボード一覧取得用URL https //menu.5ch.net/bbsmenu.html → 置き換える 遮断URL 入っている文字を削除して空欄にする 「よろし」ボタンをクリックして保存する。ダイアログが閉じる。 板一覧の更新 メニューの 板覧(B) から 板一覧の更新(U) を選択する。 これにより、左側の枠の「板一覧」に BBS MENU for 5ch から取得した5chにある板一覧が表示される。 いったんJaneViewを終了する これ以降の作業は、JaneViewが管理しているファイルを手作業で編集する。 競合しないよう JaneView を完全に終了させる。 jane2ch.brd ファイルを編集する JaneView フォルダに含まれる jane2ch.brd ファイルをテキストエディタで開き、編集して保存する。 下記のように各ラインについて「https //」を削除する。 修正する行は1,000行を超えるため、テキストエディタの一括変換を利用すると楽。 変更前 https //headline.5ch.net bbynamazu 地震headline 変更後 headline.2ch.net bbynamazu 地震headline 動作確認をする Janeを開始する 書き込みテストをする。5ch.net の ラウンジ の test スレなどを利用。 トラブルシューティング 書き込んだときに、書き込みが失敗し、次のエラーが「書き込み結果」タブに表示されることがある。これは正常であり、どんぐりシステム による認証機能が働いているために起こる。 10分くらい放置してもう一度やり直して書き込めればOK -------------------- 書込み中・・・ -------------------- ERROR!! ERROR この板へ投稿するにはどんぐりレベルが足りません。[Lv.0 Required 1] 問い合わせID:(略) ホスト:(略) 名前: 名無しさん? 警備員[Lv.0][新][芽] E-mail: sage 内容: (後略) どんぐりシステムのエラーメッセージついては、たとえば次のページを参照。 5chどんぐりシステムの備忘録 https //nanjya.net/donguri/#error 「警備員」の場合、アカウント情報は cookie でなく、5ch側で管理されているようだ。したがって、モバイル環境などで IPアドレスが変わると書き込みができなくなる。このような場合、書き込み可能なスレッド (上述の5ch.net の ラウンジ の test スレなど) にテスト書き込みをすることで、5chに新しいアカウント情報を認識させることができる。その後、4分半で L.0 → Lv.1 にレベルがアップする。 JaneView 追加設定 これらはいずれにも任意です。 注意 [TAB] の意味 Janeでは、設定ファイルで1行に複数の項目を含んでいる場合、それを [TAB] (水平タブとも言う)で区切ります。 下記手順で [TAB] と表記したものは、実際にはキーボードの [Tab] キーを押下して水平タブを挿入することを意味します。 imgur への対応 これは、画像アップロードサイト imgur.com にアップされた画像を Jane 内蔵の画像ブラウザで表示するための設定です。操作性に寄与します。 Jane2ch.exe と同じフォルダーに ImageViewURLReplace.dat と言うファイルを新規作成し、次の内容を転記します。 ^http //i\.imgur\.com/(\w{5}(? \w{2})?)\w?(\.\w+)[TAB]http //i.imgur.com/$1$2[TAB]http //imgur.com/ ^https //i\.imgur\.com/(\w{5}(? \w{2})?)\w?(\.\w+)[TAB]http //i.imgur.com/$1$2[TAB]http //imgur.com/ ^http //m\.imgur\.com/(\w{5}(? \w{2})?)\w?(\.\w+)[TAB]http //i.imgur.com/$1$2[TAB]http //imgur.com/ ^https //m\.imgur\.com/(\w{5}(? \w{2})?)\w?(\.\w+)[TAB]http //i.imgur.com/$1$2[TAB]http //imgur.com/ ^http //imgur\.com/(\w{5}(? \w{2})?)\w?(\.\w+)[TAB]http //i.imgur.com/$1$2[TAB]http //imgur.com/ ^https //imgur\.com/(\w{5}(? \w{2})?)\w?(\.\w+)[TAB]http //i.imgur.com/$1$2[TAB]http //imgur.com/ まちBBS への対応 まちBBS を利用する場合、Jane2ch.exe と同じフォルダーにある jane2ch.brd ファイルを編集し、次のラインを追加する。(計16行) まちBBS[TAB]1 [TAB]www.machi.to[TAB]tawara[TAB]会議室 [TAB]hokkaido.machi.to[TAB]hokkaidou[TAB]北海道 [TAB]tohoku.machi.to[TAB]touhoku[TAB]東北 [TAB]kousinetu.machi.to[TAB]kousinetu[TAB]北陸・甲信越 [TAB]kanto.machi.to[TAB]kanto[TAB]関東 [TAB]tokyo.machi.to[TAB]tokyo[TAB]東京 [TAB]kanto.machi.to[TAB]tama[TAB]多摩 [TAB]kanto.machi.to[TAB]kana[TAB]神奈川 [TAB]tokai.machi.to[TAB]toukai[TAB]東海 [TAB]kinki.machi.to[TAB]kinki[TAB]近畿 [TAB]kinki.machi.to[TAB]osaka[TAB]大阪 [TAB]chugoku.machi.to[TAB]cyugoku[TAB]中国 [TAB]sikoku.machi.to[TAB]sikoku[TAB]四国 [TAB]kyusyu.machi.to[TAB]kyusyu[TAB]九州 [TAB]okinawa.machi.to[TAB]okinawa[TAB]沖縄 以上
https://w.atwiki.jp/handsrecs/pages/36.html
PHP セッション // セッションスタート session_start(); // セッション変数初期化 $_SESSION = array(); // セッション破棄 session_destroy(); セッションを破棄する前にセッション変数を初期化する 日付 文字列日付形式変換 // 2009年10月5日 → 2009-10-5 date( Y-m-d , strtotime( 2009年10月5日 )); 2038年問題 http //www.revulo.com/blog/20070412.html http //www.syuhari.jp/blog/archives/198 DateTimeによる日付操作 オブジェクト生成 $datetime = new DateTime( 2009-02-10 ); 出力形式(xxxx年xx月xx日) $datetime- format( Y年m月d日 ); 翌日 $datetime- modify("+1 day"); 配列 削除 unset($data[ delete_key ]); ソート ksort($dateArray); // キーソート昇順 krsort($dateArray); // キーソート降順 配列の検索 in_array(検索値, 検索配列); // true あり false なし 型変換 数値→文字列 strval($int) 文字列 小文字→大文字 strtoupper( yyy )
https://w.atwiki.jp/lmes2/pages/145.html
AN HTTP Server におけるPHPの動作設定 概要 AN HTTP Server でPHPを動作させる為の設定を行う。 参考 SQLの窓 / PHP のインストール 前提条件 AN HTTP Server のインストール PHPのインストール 手順 Cドライブ直下に「webRoot」フォルダ(名前は任意)を作成する。 not found (284.jpg) AN HTTP Serverのオプションを開き、先程作成したフォルダのパスを入力。 not found (285.jpg) 「追加」を押す。 not found (286.jpg) 1.拡張子: .php 2.実行プログラム: c \php5\php-cgi.exe c \php5\php-cgi.exe 3.「一般パスでも実行する」にチェック 4.「PATH_TRANSLATEDを使う」にチェック not found (287.jpg) 「ok」を押していくと、再起動するか聞かれるので、「ok」を押す。 not found (288.jpg) 以上で設定は完了であるが、動作確認をする。 「c \webRoot」に「test.php」というファイルを作り、内容を以下のように書いて保存。 ? phpinfo(); ? IE等のブラウザで以下のURLにアクセスする。 http //localhost/test.php 以下のように表示されればok。PHPが動作している。 not found (289.jpg)
https://w.atwiki.jp/wiki8_hime/pages/50.html
環境;FreeBSD6.3 コピペパーツ 時計あわせ ntpdate -s -b 133.100.11.8 カーネルチューニング ===/boot/loader.conf=== echo /boot/loader.conf; echo kern.ipc.nmbclusters=32768 /boot/loader.conf; echo kern.ipc.maxsockets=32768 /boot/loader.conf; echo accf_http_load="YES" /boot/loader.conf; echo beastie_disable="YES" /boot/loader.conf; echo kern.maxssiz="134217728" /boot/loader.conf; echo kern.dfldsiz="1073741824" /boot/loader.conf; echo kern.maxdsiz="1073741824" /boot/loader.conf ===/etc/sysctl.conf=== echo /etc/sysctl.conf echo net.inet.tcp.inflight_enable=1 /etc/sysctl.conf echo kern.maxfiles=16384 /etc/sysctl.conf echo kern.maxfilesperproc=14745 /etc/sysctl.conf echo kern.ipc.somaxconn=4096 /etc/sysctl.conf echo kern.ipc.maxsockbuf=1048576 /etc/sysctl.conf ===前準備 ~ パッケージからインストール -r するとリモートからとってくるよ編~ === pkg_add -r perl pkg_add -r rsync pkg_add -r cvsup-without-gui pkg_add -r zip pkg_add -r unzip pkg_add -r wget pkg_add -r curl pkg_add -r libxml2 pkg_add -r expat2 pkg_add -r cclient pkg_add -r tidy-lib pkg_add -r freebsd-update pkg_add -r jpeg pkg_add -r png pkg_add -r freetype pkg_add -r freetype2 pkg_add -r gd pkg_add -r mhash pkg_add -r bsdsar pkg_add -r openssl ===cvsup=== cvsupは vi /usr/share/examples/cvsup/ports-supfile で host=backup1.atwiki.jp に設定。 rehash でパスを再読み込み ==cvsupでportsを更新== cvsup /usr/share/examples/cvsup/ports-supfile アパッチ fetch ftp //ftp.lab.kdd.co.jp/infosystems/apache/dist/httpd/apache_1.3.41.tar.gz tar zxvf apache_1.3.41.tar.gz cd apache_1.3.41 setenv EXTRA_CFLAGS -DFD_SETSIZE=16384 ./configure --prefix=/usr/local/apache13 --enable-module=most --enable-module=so --enable-shared=max --enable-suexec --suexec-caller=www --suexec-logfile=/usr/local/apache13/logs/suexec_log --suexec-uidmin=10000 --suexec-gidmin=10000 make make install mod_layout改造版をどっかからとってくる。 tar zxvf mod_layout cd mod_layout-3.4 vi Makefile make make install Mysql cd /usr/ports/databases/mysql41-client/ make WITH_CHARSET=sjis WITH_XCHARSET=all make install cd /usr/ports/databases/mysql41-server/ make make install /etc/my.cnf設置→どこかのサーバーからコピー PHP fetch http //jp.php.net/get/php-5.2.8.tar.gz/from/this/mirror mv mirror php-5.2.8.tar.gz tar zxvf php-5.2.8.tar.gz cd php-5.2.8/ ./configure --with-apxs=/usr/local/apache13/bin/apxs --enable-mbstring --with-openssl --with-tidy --with-gd --with-jpeg-dir=/usr/local --with-zlib --enable-mbregex --enable-gd-jis-conv --with-freetype-dir=/usr/local/ --enable-zend-multibyte --enable-mbstring=japanese --enable-ftp --with-png-dir=/usr/local --enable-memory-limit --with-xmlrpc --enable-imap --with-mysql=/usr/local --with-pdo-mysql=/usr/local --enable-iconv --with-gettext --with-curl --with-mh make make install proftpd cd /usr/ports/ftp/proftpd make (defolut + quota + mysql) make install APC ===autoconf/aotoheader=== cd /usr/ports/devel/autoconf213/ make make install ln -s /usr/local/bin/autoconf213 /usr/local/bin/autoconf ln -s /usr/local/bin/autoheader213 /usr/local/bin/autoheader ===APC=== fetch http //pecl.php.net/get/APC-3.0.12p2.tgz tar zxvf APC-3.0.12p2.tgz cd APC-3.0.12p2 phpize ./configure --enable-apc-mmap--with-apxs --with-php-config=/usr/local/bin/php-config make make install mod_bandwidth.c mkdir tmp cd tmp/ fetch ftp //ftp.cohprog.com/pub/apache/module/1.3.0/mod_bandwidth.c /usr/local/apache13/bin/apxs -c mod_bandwidth.c /usr/local/apache13/bin/apxs -i -a mod_bandwidth.so /usr/local/apache13/bin/apachectl restart httpd.confを設定する前に作業デレクトリを作成。 mkdir /usr/local/apache13/bandwidth mkdir /usr/local/apache13/bandwidth/link mkdir /usr/local/apache13/bandwidth/master chown -R www www /usr/local/apache13/bandwidth mod_limitipconn fetch http //dominia.org/djao/limit/mod_limitipconn-0.04.tar.gz tar zxvf mod_limitipconn-0.04.tar.gz cd mod_limitipconn-0.04 vi Makefile APXS=/usr/local/apache13/bin/apxs ←apxsをフルパスで指定 make make install 権限変更 権限変更750 chmod 750 /root/ chmod 750 /usr/local/apache13/conf/* chmod 750 /usr/local/etc/ chmod 750 /usr/local/etc/proftpd.conf chmod 750 /usr/home/ now ディレクトリ ファイル設置 /usr/local/www/以下 /usr/local/www/htdocs/_/ /root/_atpages/ /usr/local/www/session/ /usr/local/www/skel/ /usr/local/lib/php.ini /etc/my.cnf python インストール cd /usr/ports/lang/python25/ make make install ruby インストール cd /usr/ports/lang/ruby18/ make make install /etc/rc.confに追加 mysql_enable="YES" mysql_dbdir="/usr/local/mysql_data" proftpd_enable="YES" analog cd /usr/ports/www/analog/ make make install vi /usr/local/etc/analog.cfg ↓修正 LOGFORMAT COMMON LOGFILE /usr/local/apache13/logs/access_log OUTFILE /usr/local/www/htdocs/_analog/index.html その他 mysql設定 apache設定 proftpd設定 pf追加 /etc/crontab 編集 /etc/newsyslog.conf 編集 CGI グループ追加 pw groupadd -n pages -g 10000 php,cgiインストーラーのスクリプト設置 scp -rp dir/ ImageMagick cd /usr/ports/graphics/ImageMagick/ make make install perlモジュール cpan Jcode.pm モジュール cpan install Jcode DB_File モジュール cpan install DB_File DBI モジュール cpan install DBI DBD mysql モジュール cpan install DBD mysql ↑失敗したら、下記のURLからダウンロード http //www.cpan.org/modules/by-module/DBD/ tar zxvf DBD-mysql-4.010.tar.gz cd DBD-mysql-4.010 perl Makefile.PL make make install CGI.pm モジュール cpan install CGI image size http //search.cpan.org/~rjray/Image-Size-3.1.1/lib/Image/Size.pm Pythonモジュール ./ez_py.pv mysql /usr/ports/database/py-Mysqldb/ make make install SQLite /usr/local/bin/easy_install SQLObject ipython追加 cd /usr/ports/devel/ipython/ make make install ruby モジュール cd /usr/ports/databases/ruby-mysql/ make make install cd /usr/ports/databases/ruby-sqlite/ make make install